-- GENERATED SPELL FOR [Wildpaw Shaman] --


function spell0_11837(pUnit, Event) --@Cone of Cold,Self--
pUnit:FullCastSpellOnTarget(12557,pUnit)
pUnit:RegisterEvent('Sorts_11837', 8325, 1)
end

function spell1_11837(pUnit, Event) --@Summon Ice Totem,n/a--
pUnit:FullCastSpellOnTarget(18975,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11837', 636, 1)
end

function Sorts_11837(pUnit, Event)
local choix_sorts_11837 = math.random(0, 1)
if choix_sorts_11837 == 0 then
pUnit:RegisterEvent('spell0_11837', 1, 1)
end
if choix_sorts_11837 == 1 then
pUnit:RegisterEvent('spell1_11837', 1, 1)
end
end

function mob11837_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11837', math.random(1500, 3000), 1)
end

function mob11837_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11837_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11837_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11837, 1, 'mob11837_Action')
RegisterUnitEvent(11837, 2, 'mob11837_Leave')
RegisterUnitEvent(11837, 3, 'mob11837_Kill')
RegisterUnitEvent(11837, 4, 'mob11837_Die')
